package cn.sportvip.dto.sport;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.springframework.data.geo.Point;

import cn.sportvip.entity.sport.Tag;
/**
 * 教练
 * @author tao
 */
public class CoachDto implements Serializable{
	private static final long serialVersionUID = 1L;
	
	public int id;
	public String name;
	public String avatar;
	public int age;
	public List<Point> locations = new ArrayList<Point>(5);
	public int zan;
	public List<Tag> tags;
	public String certificate;
	
	public String[] phoneNum;
	public String introduction; 
	public String resume;
	public List<CoachHonor> honors;
	public List<String> gymnasiumNames = new ArrayList<>(5);
	public List<String> address = new ArrayList<String>(5);
	
	public Set<CourseDto> courses = new HashSet<CourseDto>(0);

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CoachDto other = (CoachDto) obj;
		if (id != other.id)
			return false;
		return true;
	}
}
